<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>订单执行详情</title>

    <!-- bootstrap -->
    <link href="__CSS__/bootstrap/bootstrap.css" rel="stylesheet" />

    <!-- libraries -->
    <link href="__CSS__/libs/font-awesome.css" type="text/css" rel="stylesheet" />

    <!-- global styles -->
    <link rel="stylesheet" type="text/css" href="__CSS__/compiled/layout.css">
    <link rel="stylesheet" type="text/css" href="__CSS__/compiled/elements.css">
    <link rel="stylesheet" href="__CSS__/new.css"/>

    <!-- this page specific styles -->

    <!-- google font libraries -->
    <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,600,700,300|Titillium+Web:200,300,400' rel='stylesheet' type='text/css'>

    <!--[if lt IE 9]>
    <script src="__JS__/html5shiv.js"></script>
    <script src="__JS__/respond.min.js"></script>
    <![endif]-->
    <!--[if lt IE 8]>
    <link href="__CSS__/libs/font-awesome-ie7.css" type="text/css" rel="stylesheet" />
    <![endif]-->
    <script>
        (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
            (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
            m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
        })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

        ga('create', 'UA-49262924-1', 'phoonio.com');
        ga('send', 'pageview');

    </script>
    <style>
        .main-box{
            min-height: 820px;
        }
        @media (max-width:1320px){
            .main-box{
                min-height: 700px;
            }
        }

    </style>
</head>
<body>
<!--head-->
{include file="pub/head"/}

<div class="container" role="main">
    <div class="row">

        <!--left-->
        {include file="pub/left"/}

        <div class="col-md-10" id="content-wrapper">
            <div class="row">
                <div class="col-lg-12">
                    <h1>订单执行详情</h1>
                    <div class="row" id="user-profile">
                        <div class="col-lg-12 col-md-12 col-sm-12">
                            <div class="main-box clearfix">

                                <div class="row profile-user-info">
                                    <div class="col-sm-6 profile-social">
                                        <ul class="fa-ul">
                                            <li><span style="font-weight: bold;margin-right: 10px;">国家</span><span>{$orderexec['state']}</span></li>
                                            <li><span style="font-weight: bold;margin-right: 10px;">客户</span><span>{$orderexec['client']}</span></li>
                                            <li><span style="font-weight: bold;margin-right: 10px;">业务部</span><span>{$orderexec['sale']}</span></li>
                                            <li><span style="font-weight: bold;margin-right: 10px;">添加时间</span><span>{$orderexec['create_time_exec']}</span></li>
                                            <li><span style="font-weight: bold;margin-right: 10px;">生产状态</span><span>{$orderexec['delivery_status']}</span></li>
                                            {if condition="$orderexec['is_status'] eq 1"}
                                            <li><span style="font-weight: bold;margin-right: 10px;">发货状态</span><span>已发货</span></li>
                                            {else/}
                                            <li><span style="font-weight: bold;margin-right: 10px;">发货状态</span><span>未发货</span></li>
                                            {/if}
                                        </ul>
                                    </div>
                                    <div class="col-sm-6 profile-social">
                                        <ul class="fa-ul">
                                            <li><span style="font-weight: bold;margin-right: 10px;">电子模块类型</span><span>{$orderexec['model_type']}</span></li>
                                            <li><span style="font-weight: bold;margin-right: 10px;">模块订单号</span><span>{$orderexec['model_num']}</span></li>
                                            <li><span style="font-weight: bold;margin-right: 10px;">模块数量</span><span>{$orderexec['model_qty']}</span></li>
                                            <li><span style="font-weight: bold;margin-right: 10px;">模块下单开始时间</span><span>{$orderexec['model_start']}</span></li>
                                            <li><span style="font-weight: bold;margin-right: 10px;">模块下单结束时间</span><span>{$orderexec['model_end']}</span></li>
                                            <li><span style="font-weight: bold;margin-right: 10px;">模块订单周期（天）</span><span>{$orderexec['order_cycle']}</span></li>
                                        </ul>
                                    </div>
                                </div>
                                <div class="tabs-wrapper profile-tabs">
                                    <ul class="nav nav-tabs">
                                        <li class="active"><a href="#tab-ordermeter" data-toggle="tab">基表型号</a></li>
                                        <li><a href="#tab-meter" data-toggle="tab">基表信息</a></li>
                                        <li><a href="#tab-friends" data-toggle="tab">其他相关信息</a></li>
                                    </ul>
                                    <div class="tab-content">
                                        <div class="tab-pane fade in active" id="tab-ordermeter">
                                            <!--基表型号-->
                                            <table class="table">
                                                <thead>
                                                    <tr>
                                                        <th>基表型号</th>
                                                        <th>基表口径</th>
                                                        <th>数量</th>
                                                    </tr>
                                                </thead>
                                                <tbody>
                                                {volist name="ordermeters" id="v"}
                                                    <tr>
                                                        <td>
                                                            {$v.meter_type}
                                                        </td>
                                                        <td>
                                                            {$v.caliber}
                                                        </td>
                                                        <td>
                                                            {$v.m_num}
                                                        </td>
                                                    </tr>
                                                {/volist}
                                                </tbody>
                                            </table>
                                        </div>
                                        <div class="tab-pane fade" id="tab-meter">
                                            <ul class="widget-users row">
                                                <li class="col-md-4">
                                                    <div class="details">
                                                        <div class="name">
                                                            <a href="#">订单数量</a>
                                                        </div>
                                                        <div class="type time online">
                                                            <i class="fa fa-check-circle"></i>
                                                        </div><span>{$orderexec['order_qty']}</span>
                                                    </div>
                                                </li>
                                                <li class="col-md-4">
                                                    <div class="details">
                                                        <div class="name">
                                                            <a href="#">基表订单号</a>
                                                        </div>
                                                        <div class="type time online">
                                                            <i class="fa fa-check-circle"></i>
                                                        </div><span>{$orderexec['order_num']}</span>
                                                    </div>
                                                </li>
                                                <li class="col-md-4">
                                                    <div class="details">
                                                        <div class="name">
                                                            <a href="#">基表组装开始时间</a>
                                                        </div>
                                                        <div class="type time online">
                                                            <i class="fa fa-check-circle"></i>
                                                        </div><span>{$orderexec['assem_start']}</span>
                                                    </div>
                                                </li>
                                                <li class="col-md-4">
                                                    <div class="details">
                                                        <div class="name">
                                                            <a href="#">基表组装完成时间</a>
                                                        </div>
                                                        <div class="type time online">
                                                            <i class="fa fa-check-circle"></i>
                                                        </div><span>{$orderexec['assem_end']}</span>
                                                    </div>
                                                </li>
                                                <li class="col-md-4">
                                                    <div class="details">
                                                        <div class="name">
                                                            <a href="#">基表组装周期</a>
                                                        </div>
                                                        <div class="type time online">
                                                            <i class="fa fa-check-circle"></i>
                                                        </div><span>{$orderexec['assem_cycle']}</span>
                                                    </div>
                                                </li>
                                                <li class="col-md-4">
                                                    <div class="details">
                                                        <div class="name">
                                                            <a href="#">表号长度</a>
                                                        </div>
                                                        <div class="type time online">
                                                            <i class="fa fa-check-circle"></i>
                                                        </div><span>{$orderexec['meter_len']}</span>
                                                    </div>
                                                </li>

                                                <li class="col-md-4">
                                                    <div class="details">
                                                        <div class="name">
                                                            <a href="#">表号</a>
                                                        </div>
                                                        <div class="type time online">
                                                            <i class="fa fa-check-circle"></i>
                                                        </div><span>{$orderexec['meter_start']}--{$orderexec['meter_end']}</span>
                                                    </div>
                                                </li>
                                            </ul>
                                        </div>
                                        <div class="tab-pane fade" id="tab-friends">
                                            <ul class="widget-users row">
                                                <!--技术软件信息-->
                                                <li class="col-md-4" id="chain">
                                                    <div class="details">
                                                        <div class="name">
                                                            <a href="#">制造商</a>
                                                        </div>
                                                        <div class="type time online">
                                                            <i class="fa fa-check-circle"></i>
                                                        </div><span>{$orderexec['manufacturer']}</span>
                                                    </div>
                                                </li>
                                                <li class="col-md-4" id="infrade">
                                                    <div class="details">
                                                        <div class="name">
                                                            <a href="#">生产负责人</a>
                                                        </div>
                                                        <div class="type time online">
                                                            <i class="fa fa-check-circle"></i>
                                                        </div><span>{$orderexec['product_principle']}</span>
                                                    </div>
                                                </li>
                                                <li class="col-md-4 forhid" id="meteraddr">
                                                    <div class="details">
                                                        <div class="name">
                                                            <a href="#">客户化工具</a>
                                                        </div>
                                                        <div class="type time online">
                                                            <i class="fa fa-check-circle"></i>
                                                        </div><span>{$orderexec['custom']}</span>
                                                    </div>
                                                </li>

                                                <li class="col-md-4">
                                                    <div class="details">
                                                        <div class="name">
                                                            <a href="#">生产数据校验</a>
                                                        </div>
                                                        <div class="type time online">
                                                            <i class="fa fa-check-circle"></i>
                                                        </div><span>{$orderexec['data']}</span>
                                                    </div>
                                                </li>
                                                <li class="col-md-4">
                                                    <div class="details">
                                                        <div class="name">
                                                            <a href="#">订单金额（单位）</a>
                                                        </div>
                                                        <div class="type time online">
                                                            <i class="fa fa-check-circle"></i>
                                                        </div><span>{$orderexec['sum_amounts']}({$orderexec['sum_units']})</span>
                                                    </div>
                                                </li>
                                                <li class="col-md-4">

                                                    <div class="details">
                                                        <div class="name">
                                                            <a href="#">备注</a>
                                                        </div>
                                                        <div class="type time online">
                                                            <i class="fa fa-check-circle"></i>
                                                        </div><span>{$orderexec['comments']}</span>
                                                    </div>
                                                </li>

                                            </ul>
                                        </div>
                                    </div>
                                </div>

                            </div>
                        </div>
                    </div>

                </div>
            </div>

            <!--</div>
        </div>-->
        </div>
    </div>
</div>
<!--foot-->
{include file="pub/foot"/}

<!-- global scripts -->
<script src="__JS__/jquery.js"></script>
<script src="__JS__/bootstrap.js"></script>

<!-- this page specific scripts -->
<script src="__JS__/jquery.slimscroll.min.js"></script>

<!-- theme scripts -->
<script src="__JS__/scripts.js"></script>
<script>
    var pro_id = $('#pro_id').val();
    //post前设为同步
    $.ajaxSettings.async = false;
    $.post("{:url('Program/one')}",{pro_id:pro_id},function(data){
        //console.log(data)
        var connect_way = ''
        var pro_pay =''
        if(data) {
            //根据方案通讯方式判断后面的显示列
            connect_way = data[0].connect_way;
            pro_pay = data[0].pro_pay
            //console.log(connect_way+','+pro_pay)
            //0RFID_V5,1STS_RFID,2STS_IR,3STS_LORA,4STS_NBIot,5STS_GPRS
            if(connect_way == 1){
                $('#chain').addClass('forhid')
            }else if(connect_way == 0){
                $('#chain').addClass('forhid')
                $('#infrade').addClass('forhid')
            }
            if(pro_pay == 0){
                //如果方案是STS(红外和lora)预付费或者STS射频卡预付费，那么技术参数那一栏目，需要增加表号（11位还是13位）；
                if((connect_way == 1) || (connect_way == 2) || (connect_way == 3)){
                    $('#meteraddr').removeClass('forhid')
                }
            }

        }
    },'json');
</script>

</body>
</html>